package com.pwt.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import com.pwt.entity.base.BaseEntity;
import javax.persistence.*;
import lombok.EqualsAndHashCode;
import lombok.Data;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;


/**
 * JobNo
 *
 * @author auto generated
 * @date 2022-01-20 09:40:38
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "[job_no]")
@Schema(name = "JobNo")
@DynamicInsert
@DynamicUpdate
public class JobNo extends BaseEntity {

	/**
	 * 1-控制线，2-公差限
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "type",description = "1-控制线，2-公差限")
	@Column(name = "type", nullable = false)
	private Integer type;

	/**
	 * 云之家jobno,多个用 , 分隔
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "jobNos",description = "云之家jobno,多个用 , 分隔")
	@Column(name = "job_nos", nullable = true, length = 1000)
	private String jobNos;

	/**
	 * 消息模板
	 * nullable : true
	 * default  : null
	 */
	@Schema(name = "message",description = "消息模板")
	@Column(name = "message", nullable = true, length = 255)
	private String message;

	/**
	 * 状态(1:开启,0:关闭)
	 * nullable : true
	 * default  : 1
	 */
	@Schema(name = "status",description = "状态(1:开启,0:关闭)")
	@Column(name = "status", nullable = true)
	private Integer status;

	/**
	 * 是否删除 0-未删除,1-删除
	 * nullable : false
	 * default  : 0
	 */
	@Schema(name = "deleted",description = "是否删除 0-未删除,1-删除")
	@Column(name = "deleted", nullable = true)
	private Integer deleted;
}
